package com.dawnling.butterknife.base;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import butterknife.ButterKnife;

public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initUI(savedInstanceState);
        //绑定初始化ButterKnife
        ButterKnife.bind(this);
    }

    public abstract void initUI(Bundle savedInstanceState);
}
